<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>QxOrm: C:/Dvlp/_Perso/QxOrm/include/QxDataMember/IxDataMember.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo_qxorm.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">QxOrm
   &#160;<span id="projectnumber">1.4.3</span>
   </div>
   <div id="projectbrief">C++ Object Relational Mapping library</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_ix_data_member_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">IxDataMember.h</div>  </div>
</div>
<div class="contents">
<a href="_ix_data_member_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/****************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment">**</span>
<a name="l00003"></a>00003 <span class="comment">** http://www.qxorm.com/</span>
<a name="l00004"></a>00004 <span class="comment">** Copyright (C) 2013 Lionel Marty (contact@qxorm.com)</span>
<a name="l00005"></a>00005 <span class="comment">**</span>
<a name="l00006"></a>00006 <span class="comment">** This file is part of the QxOrm library</span>
<a name="l00007"></a>00007 <span class="comment">**</span>
<a name="l00008"></a>00008 <span class="comment">** This software is provided &#39;as-is&#39;, without any express or implied</span>
<a name="l00009"></a>00009 <span class="comment">** warranty. In no event will the authors be held liable for any</span>
<a name="l00010"></a>00010 <span class="comment">** damages arising from the use of this software</span>
<a name="l00011"></a>00011 <span class="comment">**</span>
<a name="l00012"></a>00012 <span class="comment">** Commercial Usage</span>
<a name="l00013"></a>00013 <span class="comment">** Licensees holding valid commercial QxOrm licenses may use this file in</span>
<a name="l00014"></a>00014 <span class="comment">** accordance with the commercial license agreement provided with the</span>
<a name="l00015"></a>00015 <span class="comment">** Software or, alternatively, in accordance with the terms contained in</span>
<a name="l00016"></a>00016 <span class="comment">** a written agreement between you and Lionel Marty</span>
<a name="l00017"></a>00017 <span class="comment">**</span>
<a name="l00018"></a>00018 <span class="comment">** GNU General Public License Usage</span>
<a name="l00019"></a>00019 <span class="comment">** Alternatively, this file may be used under the terms of the GNU</span>
<a name="l00020"></a>00020 <span class="comment">** General Public License version 3.0 as published by the Free Software</span>
<a name="l00021"></a>00021 <span class="comment">** Foundation and appearing in the file &#39;license.gpl3.txt&#39; included in the</span>
<a name="l00022"></a>00022 <span class="comment">** packaging of this file. Please review the following information to</span>
<a name="l00023"></a>00023 <span class="comment">** ensure the GNU General Public License version 3.0 requirements will be</span>
<a name="l00024"></a>00024 <span class="comment">** met : http://www.gnu.org/copyleft/gpl.html</span>
<a name="l00025"></a>00025 <span class="comment">**</span>
<a name="l00026"></a>00026 <span class="comment">** If you are unsure which license is appropriate for your use, or</span>
<a name="l00027"></a>00027 <span class="comment">** if you have questions regarding the use of this file, please contact :</span>
<a name="l00028"></a>00028 <span class="comment">** contact@qxorm.com</span>
<a name="l00029"></a>00029 <span class="comment">**</span>
<a name="l00030"></a>00030 <span class="comment">****************************************************************************/</span>
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="preprocessor">#ifndef _IX_DATA_MEMBER_H_</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#define _IX_DATA_MEMBER_H_</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00035"></a>00035 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#pragma once</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00046"></a>00046 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l00047"></a>00047 <span class="preprocessor"></span><span class="preprocessor">#pragma warning(push)</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span><span class="preprocessor">#pragma warning(disable:4996)</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span><span class="preprocessor">#endif // _MSC_VER</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span>
<a name="l00051"></a>00051 <span class="preprocessor">#include &lt;boost/any.hpp&gt;</span>
<a name="l00052"></a>00052 
<a name="l00053"></a>00053 <span class="preprocessor">#ifndef _QX_NO_JSON</span>
<a name="l00054"></a>00054 <span class="preprocessor"></span><span class="preprocessor">#include &lt;QtCore/qjsonvalue.h&gt;</span>
<a name="l00055"></a>00055 <span class="preprocessor">#endif // _QX_NO_JSON</span>
<a name="l00056"></a>00056 <span class="preprocessor"></span>
<a name="l00057"></a>00057 <span class="preprocessor">#include &lt;<a class="code" href="_qx_bool_8h.html" title="qx_bool : QxOrm library boolean type with code and description message when an error occured...">QxCommon/QxBool.h</a>&gt;</span>
<a name="l00058"></a>00058 <span class="preprocessor">#include &lt;<a class="code" href="_qx_property_bag_8h.html" title="Used by introspection engine (IxClass, IxDataMember, IxFunction, etc.) to add meta-data (property bag...">QxCommon/QxPropertyBag.h</a>&gt;</span>
<a name="l00059"></a>00059 
<a name="l00060"></a>00060 <span class="preprocessor">#include &lt;<a class="code" href="_qx_serialize_include_8h.html">QxSerialize/boost/QxSerializeInclude.h</a>&gt;</span>
<a name="l00061"></a>00061 
<a name="l00062"></a>00062 <span class="preprocessor">#include &lt;<a class="code" href="_ix_sql_relation_8h.html" title="Common interface for all relationships defined between 2 classes (or between 2 tables in database)...">QxDao/IxSqlRelation.h</a>&gt;</span>
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 <span class="preprocessor">#include &lt;<a class="code" href="_qx_convert_8h.html" title="qx::cvt : namespace to provide global functions to convert any kind of objects to/from QString and QV...">QxConvert/QxConvert.h</a>&gt;</span>
<a name="l00065"></a>00065 
<a name="l00066"></a>00066 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l00067"></a>00067 <span class="preprocessor"></span><span class="preprocessor">#pragma warning(pop)</span>
<a name="l00068"></a>00068 <span class="preprocessor"></span><span class="preprocessor">#endif // _MSC_VER</span>
<a name="l00069"></a>00069 <span class="preprocessor"></span>
<a name="l00070"></a><a class="code" href="_ix_data_member_8h.html#a7c2ce6844c063fe65cdd891960682261">00070</a> <span class="preprocessor">#define QX_CONSTRUCT_IX_DATA_MEMBER() \</span>
<a name="l00071"></a>00071 <span class="preprocessor">m_iPrecision(6), m_iMinLength(-1), m_iMaxLength(-1), m_bRequired(false), \</span>
<a name="l00072"></a>00072 <span class="preprocessor">m_bReadOnly(false), m_bAutoIncrement(false), m_bNotNull(false), \</span>
<a name="l00073"></a>00073 <span class="preprocessor">m_bIsPrimaryKey(false), m_bAccessDataPointer(false), m_bIndex(false), \</span>
<a name="l00074"></a>00074 <span class="preprocessor">m_bUnique(false), m_pName(NULL), m_pParent(NULL)</span>
<a name="l00075"></a>00075 <span class="preprocessor"></span>
<a name="l00076"></a><a class="code" href="_ix_data_member_8h.html#a7b213afb4618256e4c0c7fe6b081e52b">00076</a> <span class="preprocessor">#define QX_IX_DATA_MEMBER_PURE_VIRTUAL_ARCHIVE(ArchiveInput, ArchiveOutput) \</span>
<a name="l00077"></a>00077 <span class="preprocessor">virtual void toArchive(const void * pOwner, ArchiveOutput &amp; ar) const = 0; \</span>
<a name="l00078"></a>00078 <span class="preprocessor">virtual void fromArchive(void * pOwner, ArchiveInput &amp; ar) = 0;</span>
<a name="l00079"></a>00079 <span class="preprocessor"></span>
<a name="l00080"></a>00080 <span class="keyword">namespace </span>qx {
<a name="l00081"></a>00081 
<a name="l00082"></a>00082 <span class="keyword">class </span>IxDataMemberX;
<a name="l00083"></a>00083 
<a name="l00088"></a><a class="code" href="classqx_1_1_ix_data_member.html">00088</a> <span class="keyword">class </span><a class="code" href="_qx_macro_8h.html#aa569abe24f343fdc4ad5e12e156ba8a2">QX_DLL_EXPORT</a> <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> : <span class="keyword">public</span> qx::<a class="code" href="classqx_1_1_qx_property_bag.html" title="qx::QxPropertyBag : used by introspection engine (IxClass, IxDataMember, IxFunction, etc.) to add meta-data (property bag)">QxPropertyBag</a>
<a name="l00089"></a>00089 {
<a name="l00090"></a>00090 
<a name="l00091"></a>00091 <span class="keyword">public</span>:
<a name="l00092"></a>00092 
<a name="l00093"></a><a class="code" href="classqx_1_1_ix_data_member.html#aef0fd1b5c65fbd9b3909a36041ace0af">00093</a>    <span class="keyword">typedef</span> QMap&lt;int, QPair&lt;IxSqlRelation *, int&gt; &gt; <a class="code" href="classqx_1_1_ix_data_member.html#aef0fd1b5c65fbd9b3909a36041ace0af">type_fk_part_of_pk</a>;
<a name="l00094"></a><a class="code" href="classqx_1_1_ix_data_member.html#a2640263aad5f93ba47416affa5f62521">00094</a>    <span class="keyword">typedef</span> boost::scoped_ptr&lt;type_fk_part_of_pk&gt; <a class="code" href="classqx_1_1_ix_data_member.html#a2640263aad5f93ba47416affa5f62521" title="Type used by primary key to manage the case where a foreign key (relationship) is also a part of prim...">type_fk_part_of_pk_ptr</a>;   
<a name="l00095"></a><a class="code" href="classqx_1_1_ix_data_member.html#ab7aec31eac4756c11da781b71778d560">00095</a>    <span class="keyword">typedef</span> QMap&lt;int, QPair&lt;IxDataMember *, int&gt; &gt; <a class="code" href="classqx_1_1_ix_data_member.html#ab7aec31eac4756c11da781b71778d560">type_part_of_pk</a>;
<a name="l00096"></a><a class="code" href="classqx_1_1_ix_data_member.html#a7f8a29c064fe043ca047fae46cdc134d">00096</a>    <span class="keyword">typedef</span> boost::scoped_ptr&lt;type_part_of_pk&gt; <a class="code" href="classqx_1_1_ix_data_member.html#a7f8a29c064fe043ca047fae46cdc134d" title="Type used by relationship to manage the case where a foreign key (relationship) is also a part of pri...">type_part_of_pk_ptr</a>;         
<a name="l00097"></a>00097 
<a name="l00098"></a>00098 <span class="keyword">protected</span>:
<a name="l00099"></a>00099 
<a name="l00100"></a><a class="code" href="classqx_1_1_ix_data_member.html#ab11bc85222c9de42f628b5b2a6f64820">00100</a>    QString     <a class="code" href="classqx_1_1_ix_data_member.html#ab11bc85222c9de42f628b5b2a6f64820" title="Data key.">m_sKey</a>;                 
<a name="l00101"></a><a class="code" href="classqx_1_1_ix_data_member.html#a1bf1cc0e6c925889b8d907c4cab03925">00101</a>    QString     <a class="code" href="classqx_1_1_ix_data_member.html#a1bf1cc0e6c925889b8d907c4cab03925" title="Data name &lt;=&gt; database record name (if empty =&gt; data key)">m_sName</a>;                
<a name="l00102"></a><a class="code" href="classqx_1_1_ix_data_member.html#a7ea165a8f3917522f019b2e783c2946c">00102</a>    QString     <a class="code" href="classqx_1_1_ix_data_member.html#a7ea165a8f3917522f019b2e783c2946c" title="Data parent name &lt;=&gt; database table name.">m_sNameParent</a>;          
<a name="l00103"></a><a class="code" href="classqx_1_1_ix_data_member.html#ad1a6d0d218775a7ee4d061d9b29e7c7e">00103</a>    QString     <a class="code" href="classqx_1_1_ix_data_member.html#ad1a6d0d218775a7ee4d061d9b29e7c7e" title="Data description.">m_sDescription</a>;         
<a name="l00104"></a><a class="code" href="classqx_1_1_ix_data_member.html#aeb84b2b20e3577573c81f8029cf42c24">00104</a>    QString     <a class="code" href="classqx_1_1_ix_data_member.html#aeb84b2b20e3577573c81f8029cf42c24" title="Data format (&#39;%04d&#39; for example)">m_sFormat</a>;              
<a name="l00105"></a><a class="code" href="classqx_1_1_ix_data_member.html#a86f980cb22d16924a9b48c4c22a6d69e">00105</a>    QString     <a class="code" href="classqx_1_1_ix_data_member.html#a86f980cb22d16924a9b48c4c22a6d69e" title="Data sql type.">m_sSqlType</a>;             
<a name="l00106"></a><a class="code" href="classqx_1_1_ix_data_member.html#ac580f1068b5e51788969c5dd8e90a0b4">00106</a>    QString     <a class="code" href="classqx_1_1_ix_data_member.html#ac580f1068b5e51788969c5dd8e90a0b4" title="Data sql alias.">m_sSqlAlias</a>;            
<a name="l00107"></a><a class="code" href="classqx_1_1_ix_data_member.html#a82f55cd63810fcb1b7b8a6034853fbdc">00107</a>    <span class="keywordtype">long</span>        <a class="code" href="classqx_1_1_ix_data_member.html#a82f55cd63810fcb1b7b8a6034853fbdc" title="Data version creation.">m_lVersion</a>;             
<a name="l00108"></a><a class="code" href="classqx_1_1_ix_data_member.html#aba5ab37f0c6a7f798022aaf97865f857">00108</a>    <span class="keywordtype">bool</span>        <a class="code" href="classqx_1_1_ix_data_member.html#aba5ab37f0c6a7f798022aaf97865f857" title="Data must be serialized.">m_bSerialize</a>;           
<a name="l00109"></a><a class="code" href="classqx_1_1_ix_data_member.html#a8cf792b4bb0d4a6a5a44742a08a08247">00109</a>    <span class="keywordtype">bool</span>        <a class="code" href="classqx_1_1_ix_data_member.html#a8cf792b4bb0d4a6a5a44742a08a08247" title="Data is associated with a data source.">m_bDao</a>;                 
<a name="l00110"></a><a class="code" href="classqx_1_1_ix_data_member.html#ac88e1c5478c03345bf84dc08e7240b5e">00110</a>    QVariant    <a class="code" href="classqx_1_1_ix_data_member.html#ac88e1c5478c03345bf84dc08e7240b5e" title="Data default value under QVariant format.">m_vDefaultValue</a>;        
<a name="l00111"></a><a class="code" href="classqx_1_1_ix_data_member.html#aea59b0477773c2e808e89d924192b634">00111</a>    QVariant    <a class="code" href="classqx_1_1_ix_data_member.html#aea59b0477773c2e808e89d924192b634" title="Data minimum value under QVariant format.">m_vMinValue</a>;            
<a name="l00112"></a><a class="code" href="classqx_1_1_ix_data_member.html#ae6321db3d4f6c48dbc8d91f42ca496dd">00112</a>    QVariant    <a class="code" href="classqx_1_1_ix_data_member.html#ae6321db3d4f6c48dbc8d91f42ca496dd" title="Data maximum value under QVariant format.">m_vMaxValue</a>;            
<a name="l00113"></a><a class="code" href="classqx_1_1_ix_data_member.html#a28a67960c4a02df57bd67e34ab4a82ee">00113</a>    <span class="keywordtype">int</span>         <a class="code" href="classqx_1_1_ix_data_member.html#a28a67960c4a02df57bd67e34ab4a82ee" title="Data precision for numerics values (double, float, etc...)">m_iPrecision</a>;           
<a name="l00114"></a><a class="code" href="classqx_1_1_ix_data_member.html#a356a1288220e7e662244bcaab4bd0c96">00114</a>    <span class="keywordtype">int</span>         <a class="code" href="classqx_1_1_ix_data_member.html#a356a1288220e7e662244bcaab4bd0c96" title="Data minimum length (-1 &lt;=&gt; no min length)">m_iMinLength</a>;           
<a name="l00115"></a><a class="code" href="classqx_1_1_ix_data_member.html#a13233baab22d27b927b8b39f9cb0331b">00115</a>    <span class="keywordtype">int</span>         <a class="code" href="classqx_1_1_ix_data_member.html#a13233baab22d27b927b8b39f9cb0331b" title="Data maximum length (-1 &lt;=&gt; no max length)">m_iMaxLength</a>;           
<a name="l00116"></a><a class="code" href="classqx_1_1_ix_data_member.html#ac387c43ad4753c8fe14fdc9004033e17">00116</a>    <span class="keywordtype">bool</span>        <a class="code" href="classqx_1_1_ix_data_member.html#ac387c43ad4753c8fe14fdc9004033e17" title="Data is required or optional.">m_bRequired</a>;            
<a name="l00117"></a><a class="code" href="classqx_1_1_ix_data_member.html#a0cd145fa2985eddcb141e4b4319c7b3d">00117</a>    <span class="keywordtype">bool</span>        <a class="code" href="classqx_1_1_ix_data_member.html#a0cd145fa2985eddcb141e4b4319c7b3d" title="Data is read-only.">m_bReadOnly</a>;            
<a name="l00118"></a><a class="code" href="classqx_1_1_ix_data_member.html#ae55e5fa0114fab26bb2e59e8840858f8">00118</a>    <span class="keywordtype">bool</span>        <a class="code" href="classqx_1_1_ix_data_member.html#ae55e5fa0114fab26bb2e59e8840858f8" title="Data value is auto-generated (auto-increment)">m_bAutoIncrement</a>;       
<a name="l00119"></a><a class="code" href="classqx_1_1_ix_data_member.html#a3332f472bac8e7275eb6afe06d2ca242">00119</a>    <span class="keywordtype">bool</span>        <a class="code" href="classqx_1_1_ix_data_member.html#a3332f472bac8e7275eb6afe06d2ca242" title="Data can be null or not.">m_bNotNull</a>;             
<a name="l00120"></a><a class="code" href="classqx_1_1_ix_data_member.html#a3391751518203b6703bd3705c536b9a1">00120</a>    <span class="keywordtype">bool</span>        <a class="code" href="classqx_1_1_ix_data_member.html#a3391751518203b6703bd3705c536b9a1" title="Data is a primary key.">m_bIsPrimaryKey</a>;        
<a name="l00121"></a><a class="code" href="classqx_1_1_ix_data_member.html#af53ceb108de8d616c20236fe5e7ef2df">00121</a>    <span class="keywordtype">bool</span>        <a class="code" href="classqx_1_1_ix_data_member.html#af53ceb108de8d616c20236fe5e7ef2df" title="Can access to the data-member pointer.">m_bAccessDataPointer</a>;   
<a name="l00122"></a><a class="code" href="classqx_1_1_ix_data_member.html#ac96a1d845b213f76124848bcea76abc0">00122</a>    <span class="keywordtype">bool</span>        <a class="code" href="classqx_1_1_ix_data_member.html#ac96a1d845b213f76124848bcea76abc0" title="Data is an index to optimize SQL queries.">m_bIndex</a>;               
<a name="l00123"></a><a class="code" href="classqx_1_1_ix_data_member.html#a46eb26b172e2b91c507d1a2edf83727d">00123</a>    <span class="keywordtype">bool</span>        <a class="code" href="classqx_1_1_ix_data_member.html#a46eb26b172e2b91c507d1a2edf83727d" title="Data is unique : 2 rows cannot have the same value for this column.">m_bUnique</a>;              
<a name="l00124"></a>00124 
<a name="l00125"></a><a class="code" href="classqx_1_1_ix_data_member.html#acf3f69c4f2fd4763d1531ba07b04f33d">00125</a>    QByteArray <a class="code" href="classqx_1_1_ix_data_member.html#acf3f69c4f2fd4763d1531ba07b04f33d" title="Optimization to retrieve name under &quot;const char *&quot; format.">m_byteName</a>;              
<a name="l00126"></a><a class="code" href="classqx_1_1_ix_data_member.html#a91e437d3c235ebc2ee7ad9aa1bee22a8">00126</a>    <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="classqx_1_1_ix_data_member.html#a91e437d3c235ebc2ee7ad9aa1bee22a8" title="Optimization to retrieve name under &quot;const char *&quot; format.">m_pName</a>;               
<a name="l00127"></a><a class="code" href="classqx_1_1_ix_data_member.html#a2cac45216277b2c0185fad8f19a4ae5f">00127</a>    QStringList <a class="code" href="classqx_1_1_ix_data_member.html#a2cac45216277b2c0185fad8f19a4ae5f" title="Particular case of &quot;boost::tuple&lt;&gt;&quot; data member (multi-column primary key, composite key)...">m_lstNames</a>;             
<a name="l00128"></a>00128 
<a name="l00129"></a><a class="code" href="classqx_1_1_ix_data_member.html#adc56f2359076e2bec7b73d1aef8e49b6">00129</a>    boost::scoped_ptr&lt;IxSqlRelation&gt; <a class="code" href="classqx_1_1_ix_data_member.html#adc56f2359076e2bec7b73d1aef8e49b6" title="Sql relation to build/resolve sql query.">m_pSqlRelation</a>;   
<a name="l00130"></a><a class="code" href="classqx_1_1_ix_data_member.html#aa297b9eeca5f1452da3291c7f0f722be">00130</a>    <a class="code" href="classqx_1_1_ix_data_member_x.html" title="qx::IxDataMemberX : common interface for a list of IxDataMember class properties registered into QxOr...">IxDataMemberX</a> * <a class="code" href="classqx_1_1_ix_data_member.html#aa297b9eeca5f1452da3291c7f0f722be" title="&#39;IxDataMemberX&#39; parent">m_pParent</a>;                         
<a name="l00131"></a>00131 
<a name="l00132"></a><a class="code" href="classqx_1_1_ix_data_member.html#a252c64e7bb4625f462f5e3e569e2f530">00132</a>    <a class="code" href="classqx_1_1_ix_data_member.html#a2640263aad5f93ba47416affa5f62521" title="Type used by primary key to manage the case where a foreign key (relationship) is also a part of prim...">type_fk_part_of_pk_ptr</a> <a class="code" href="classqx_1_1_ix_data_member.html#a252c64e7bb4625f462f5e3e569e2f530" title="Used by primary key to manage the case where a foreign key (relationship) is also a part of primary k...">m_pListRelationPartOfPrimaryKey</a>;     
<a name="l00133"></a><a class="code" href="classqx_1_1_ix_data_member.html#a05d8238a6d558b955488f0cbbec1fbd0">00133</a>    <a class="code" href="classqx_1_1_ix_data_member.html#a7f8a29c064fe043ca047fae46cdc134d" title="Type used by relationship to manage the case where a foreign key (relationship) is also a part of pri...">type_part_of_pk_ptr</a> <a class="code" href="classqx_1_1_ix_data_member.html#a05d8238a6d558b955488f0cbbec1fbd0" title="Used by relationship to manage the case where a foreign key (relationship) is also a part of primary ...">m_pListPartOfPrimaryKey</a>;                
<a name="l00134"></a>00134 
<a name="l00135"></a>00135 <span class="keyword">public</span>:
<a name="l00136"></a>00136 
<a name="l00137"></a><a class="code" href="classqx_1_1_ix_data_member.html#a17cae1692e02e92254cf609f5cf2b693">00137</a>    <a class="code" href="classqx_1_1_ix_data_member.html#a17cae1692e02e92254cf609f5cf2b693">IxDataMember</a>(<span class="keyword">const</span> QString &amp; sKey) : qx::<a class="code" href="classqx_1_1_qx_property_bag.html" title="qx::QxPropertyBag : used by introspection engine (IxClass, IxDataMember, IxFunction, etc.) to add meta-data (property bag)">QxPropertyBag</a>(), m_sKey(sKey), m_lVersion(-1), m_bSerialize(true), m_bDao(true), <a class="code" href="_ix_data_member_8h.html#a7c2ce6844c063fe65cdd891960682261">QX_CONSTRUCT_IX_DATA_MEMBER</a>() { <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(! m_sKey.isEmpty()); updateNamePtr(); }
<a name="l00138"></a><a class="code" href="classqx_1_1_ix_data_member.html#af358e71dcf10e5a3dbd172e66890dff6">00138</a>    <a class="code" href="classqx_1_1_ix_data_member.html#af358e71dcf10e5a3dbd172e66890dff6">IxDataMember</a>(<span class="keyword">const</span> QString &amp; sKey, <span class="keywordtype">long</span> lVersion, <span class="keywordtype">bool</span> bSerialize, <span class="keywordtype">bool</span> bDao) : qx::<a class="code" href="classqx_1_1_qx_property_bag.html" title="qx::QxPropertyBag : used by introspection engine (IxClass, IxDataMember, IxFunction, etc.) to add meta-data (property bag)">QxPropertyBag</a>(), m_sKey(sKey), m_lVersion(lVersion), m_bSerialize(bSerialize), m_bDao(bDao), <a class="code" href="_ix_data_member_8h.html#a7c2ce6844c063fe65cdd891960682261">QX_CONSTRUCT_IX_DATA_MEMBER</a>() { <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(! m_sKey.isEmpty()); updateNamePtr(); }
<a name="l00139"></a>00139    <span class="keyword">virtual</span> ~<a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a>() = 0;
<a name="l00140"></a>00140 
<a name="l00141"></a><a class="code" href="classqx_1_1_ix_data_member.html#aaf7b8145ed3e5a4708ff713951629744">00141</a>    <span class="keyword">inline</span> QString <a class="code" href="classqx_1_1_ix_data_member.html#aaf7b8145ed3e5a4708ff713951629744">getKey</a>()<span class="keyword"> const                   </span>{ <span class="keywordflow">return</span> m_sKey; }
<a name="l00142"></a><a class="code" href="classqx_1_1_ix_data_member.html#a926eeba2e1dbbf9e10732cd04bfad3fd">00142</a>    <span class="keyword">inline</span> QString <a class="code" href="classqx_1_1_ix_data_member.html#a926eeba2e1dbbf9e10732cd04bfad3fd">getName</a>()<span class="keyword"> const                  </span>{ <span class="keywordflow">return</span> (m_sName.isEmpty() ? m_sKey : m_sName); }
<a name="l00143"></a><a class="code" href="classqx_1_1_ix_data_member.html#aa2599d94e81602d2f0fc6c018328f446">00143</a>    <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="classqx_1_1_ix_data_member.html#aa2599d94e81602d2f0fc6c018328f446">getNameCount</a>()<span class="keyword"> const                 </span>{ <span class="keywordflow">return</span> m_lstNames.count(); }
<a name="l00144"></a><a class="code" href="classqx_1_1_ix_data_member.html#a5505e783d6abe3953840324453d80f7c">00144</a>    <span class="keyword">inline</span> QString <a class="code" href="classqx_1_1_ix_data_member.html#a5505e783d6abe3953840324453d80f7c">getNameParent</a>()<span class="keyword"> const            </span>{ <span class="keywordflow">return</span> m_sNameParent; }
<a name="l00145"></a><a class="code" href="classqx_1_1_ix_data_member.html#af22b7438d420daff2194cf705acca251">00145</a>    <span class="keyword">inline</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="classqx_1_1_ix_data_member.html#af22b7438d420daff2194cf705acca251">getNamePtr</a>()<span class="keyword"> const          </span>{ <span class="keywordflow">return</span> m_pName; }
<a name="l00146"></a><a class="code" href="classqx_1_1_ix_data_member.html#a0b1ebad019a16cc486ff9708a86f76ab">00146</a>    <span class="keyword">inline</span> QString <a class="code" href="classqx_1_1_ix_data_member.html#a0b1ebad019a16cc486ff9708a86f76ab">getDescription</a>()<span class="keyword"> const           </span>{ <span class="keywordflow">return</span> m_sDescription; }
<a name="l00147"></a><a class="code" href="classqx_1_1_ix_data_member.html#a7c9406955eccbd0d03360bb39469332e">00147</a>    <span class="keyword">inline</span> QString <a class="code" href="classqx_1_1_ix_data_member.html#a7c9406955eccbd0d03360bb39469332e">getFormat</a>()<span class="keyword"> const                </span>{ <span class="keywordflow">return</span> m_sFormat; }
<a name="l00148"></a><a class="code" href="classqx_1_1_ix_data_member.html#a1ced5d1699bb1e7f8baff141d707e631">00148</a>    <span class="keyword">inline</span> <span class="keywordtype">long</span> <a class="code" href="classqx_1_1_ix_data_member.html#a1ced5d1699bb1e7f8baff141d707e631">getVersion</a>()<span class="keyword"> const                  </span>{ <span class="keywordflow">return</span> m_lVersion; }
<a name="l00149"></a><a class="code" href="classqx_1_1_ix_data_member.html#a55879183413b694af79443a697bbfc95">00149</a>    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_ix_data_member.html#a55879183413b694af79443a697bbfc95">getSerialize</a>()<span class="keyword"> const                </span>{ <span class="keywordflow">return</span> m_bSerialize; }
<a name="l00150"></a><a class="code" href="classqx_1_1_ix_data_member.html#a5ade017e22980cc18ea972061768b528">00150</a>    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_ix_data_member.html#a5ade017e22980cc18ea972061768b528">getDao</a>()<span class="keyword"> const                      </span>{ <span class="keywordflow">return</span> m_bDao; }
<a name="l00151"></a><a class="code" href="classqx_1_1_ix_data_member.html#afcf4726d01ca355c4d863a79cd0a34a2">00151</a>    <span class="keyword">inline</span> QVariant <a class="code" href="classqx_1_1_ix_data_member.html#afcf4726d01ca355c4d863a79cd0a34a2">getDefaultValue</a>()<span class="keyword"> const         </span>{ <span class="keywordflow">return</span> m_vDefaultValue; }
<a name="l00152"></a><a class="code" href="classqx_1_1_ix_data_member.html#a4301b61e9669d18c967cc107cf42cda3">00152</a>    <span class="keyword">inline</span> QVariant <a class="code" href="classqx_1_1_ix_data_member.html#a4301b61e9669d18c967cc107cf42cda3">getMinValue</a>()<span class="keyword"> const             </span>{ <span class="keywordflow">return</span> m_vMinValue; }
<a name="l00153"></a><a class="code" href="classqx_1_1_ix_data_member.html#a66715dd89b6d0bff2086aa0d87b2298c">00153</a>    <span class="keyword">inline</span> QVariant <a class="code" href="classqx_1_1_ix_data_member.html#a66715dd89b6d0bff2086aa0d87b2298c">getMaxValue</a>()<span class="keyword"> const             </span>{ <span class="keywordflow">return</span> m_vMaxValue; }
<a name="l00154"></a><a class="code" href="classqx_1_1_ix_data_member.html#a7b1a82e873fe793a054ff1aadab83473">00154</a>    <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="classqx_1_1_ix_data_member.html#a7b1a82e873fe793a054ff1aadab83473">getPrecision</a>()<span class="keyword"> const                 </span>{ <span class="keywordflow">return</span> m_iPrecision; }
<a name="l00155"></a><a class="code" href="classqx_1_1_ix_data_member.html#a1527c725e11718f28cdaee3744d14f51">00155</a>    <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="classqx_1_1_ix_data_member.html#a1527c725e11718f28cdaee3744d14f51">getMinLength</a>()<span class="keyword"> const                 </span>{ <span class="keywordflow">return</span> m_iMinLength; }
<a name="l00156"></a><a class="code" href="classqx_1_1_ix_data_member.html#ac84c4a9492b49560923b5871a7154eb9">00156</a>    <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="classqx_1_1_ix_data_member.html#ac84c4a9492b49560923b5871a7154eb9">getMaxLength</a>()<span class="keyword"> const                 </span>{ <span class="keywordflow">return</span> m_iMaxLength; }
<a name="l00157"></a><a class="code" href="classqx_1_1_ix_data_member.html#a5d374c8faebd5ef5661e0201d8cbf149">00157</a>    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_ix_data_member.html#a5d374c8faebd5ef5661e0201d8cbf149">getRequired</a>()<span class="keyword"> const                 </span>{ <span class="keywordflow">return</span> m_bRequired; }
<a name="l00158"></a><a class="code" href="classqx_1_1_ix_data_member.html#ae901620bc3e7899c44530d7362985731">00158</a>    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_ix_data_member.html#ae901620bc3e7899c44530d7362985731">getReadOnly</a>()<span class="keyword"> const                 </span>{ <span class="keywordflow">return</span> m_bReadOnly; }
<a name="l00159"></a><a class="code" href="classqx_1_1_ix_data_member.html#af2bf8dd8989da848489dabbce9f698f5">00159</a>    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_ix_data_member.html#af2bf8dd8989da848489dabbce9f698f5">getAutoIncrement</a>()<span class="keyword"> const            </span>{ <span class="keywordflow">return</span> m_bAutoIncrement; }
<a name="l00160"></a><a class="code" href="classqx_1_1_ix_data_member.html#af36b0d7e6b41fcad40136f6a4cd610c4">00160</a>    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_ix_data_member.html#af36b0d7e6b41fcad40136f6a4cd610c4">getNotNull</a>()<span class="keyword"> const                  </span>{ <span class="keywordflow">return</span> m_bNotNull; }
<a name="l00161"></a><a class="code" href="classqx_1_1_ix_data_member.html#a78aae422b8f95d5c2593c731b5e6644c">00161</a>    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_ix_data_member.html#a78aae422b8f95d5c2593c731b5e6644c">getIsPrimaryKey</a>()<span class="keyword"> const             </span>{ <span class="keywordflow">return</span> m_bIsPrimaryKey; }
<a name="l00162"></a><a class="code" href="classqx_1_1_ix_data_member.html#ac1683b48a75de6d2c1ceeaae5c672274">00162</a>    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_ix_data_member.html#ac1683b48a75de6d2c1ceeaae5c672274">getIsIndex</a>()<span class="keyword"> const                  </span>{ <span class="keywordflow">return</span> m_bIndex; }
<a name="l00163"></a><a class="code" href="classqx_1_1_ix_data_member.html#af50239fed730e44b01ed56215d3f47c6">00163</a>    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_ix_data_member.html#af50239fed730e44b01ed56215d3f47c6">getIsUnique</a>()<span class="keyword"> const                 </span>{ <span class="keywordflow">return</span> m_bUnique; }
<a name="l00164"></a><a class="code" href="classqx_1_1_ix_data_member.html#afcefef26ba1d0b1b65a329ab05edb8b5">00164</a>    <span class="keyword">inline</span> <a class="code" href="classqx_1_1_ix_data_member_x.html" title="qx::IxDataMemberX : common interface for a list of IxDataMember class properties registered into QxOr...">IxDataMemberX</a> * <a class="code" href="classqx_1_1_ix_data_member.html#afcefef26ba1d0b1b65a329ab05edb8b5">getParent</a>()<span class="keyword"> const        </span>{ <span class="keywordflow">return</span> m_pParent; }
<a name="l00165"></a><a class="code" href="classqx_1_1_ix_data_member.html#a6300fd163bce788f01ab70284d48230a">00165</a>    <span class="keyword">inline</span> <a class="code" href="classqx_1_1_ix_sql_relation.html" title="qx::IxSqlRelation : common interface for all relationships defined between 2 classes (or between 2 ta...">IxSqlRelation</a> * <a class="code" href="classqx_1_1_ix_data_member.html#a6300fd163bce788f01ab70284d48230a">getSqlRelation</a>()<span class="keyword"> const   </span>{ <span class="keywordflow">return</span> m_pSqlRelation.get(); }
<a name="l00166"></a><a class="code" href="classqx_1_1_ix_data_member.html#abcfa16c3cc3ae21faa0a686c18c84f57">00166</a>    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_ix_data_member.html#abcfa16c3cc3ae21faa0a686c18c84f57">hasSqlRelation</a>()<span class="keyword"> const              </span>{ <span class="keywordflow">return</span> (m_pSqlRelation.get() != NULL); }
<a name="l00167"></a>00167 
<a name="l00168"></a><a class="code" href="classqx_1_1_ix_data_member.html#a48bfe09f53bd4cab2bf47483d6b16ea3">00168</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_ix_data_member.html#a48bfe09f53bd4cab2bf47483d6b16ea3">setName</a>(<span class="keyword">const</span> QString &amp; sName)                  { m_sName = sName; updateNamePtr(); }
<a name="l00169"></a><a class="code" href="classqx_1_1_ix_data_member.html#ae0df28a11065e37d49bf014644c2944e">00169</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_ix_data_member.html#ae0df28a11065e37d49bf014644c2944e">setNameParent</a>(<span class="keyword">const</span> QString &amp; sName)            { m_sNameParent = sName; }
<a name="l00170"></a><a class="code" href="classqx_1_1_ix_data_member.html#a04b9b067edfa1867be4e56c59e541fe0">00170</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_ix_data_member.html#a04b9b067edfa1867be4e56c59e541fe0">setDescription</a>(<span class="keyword">const</span> QString &amp; sDesc)           { m_sDescription = sDesc; }
<a name="l00171"></a><a class="code" href="classqx_1_1_ix_data_member.html#a07fdb5a9e623c4feec8d0a576ddf3577">00171</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_ix_data_member.html#a07fdb5a9e623c4feec8d0a576ddf3577">setFormat</a>(<span class="keyword">const</span> QString &amp; sFormat)              { m_sFormat = sFormat; }
<a name="l00172"></a><a class="code" href="classqx_1_1_ix_data_member.html#a2891e6ec1f72ddaec2404ae2e1679f8a">00172</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_ix_data_member.html#a2891e6ec1f72ddaec2404ae2e1679f8a">setSqlType</a>(<span class="keyword">const</span> QString &amp; sSqlType)            { m_sSqlType = sSqlType; }
<a name="l00173"></a><a class="code" href="classqx_1_1_ix_data_member.html#a01054985250b0c7cea2e71a282e1b94e">00173</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_ix_data_member.html#a01054985250b0c7cea2e71a282e1b94e">setSqlAlias</a>(<span class="keyword">const</span> QString &amp; sSqlAlias)          { m_sSqlAlias = sSqlAlias; }
<a name="l00174"></a><a class="code" href="classqx_1_1_ix_data_member.html#a6ff399c36c7114c150311fe29565931f">00174</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_ix_data_member.html#a6ff399c36c7114c150311fe29565931f">setVersion</a>(<span class="keywordtype">long</span> lVersion)                       { m_lVersion = lVersion; }
<a name="l00175"></a><a class="code" href="classqx_1_1_ix_data_member.html#a62b82fffe019a0335b8b2a82581257ea">00175</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_ix_data_member.html#a62b82fffe019a0335b8b2a82581257ea">setSerialize</a>(<span class="keywordtype">bool</span> bSerialize)                   { m_bSerialize = bSerialize; }
<a name="l00176"></a><a class="code" href="classqx_1_1_ix_data_member.html#a7e0bd5f49a8af4ec71ba25d2e7c606c0">00176</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_ix_data_member.html#a7e0bd5f49a8af4ec71ba25d2e7c606c0">setDao</a>(<span class="keywordtype">bool</span> bDao)                               { m_bDao = bDao; }
<a name="l00177"></a><a class="code" href="classqx_1_1_ix_data_member.html#aced8a9110408450377651ea564f88580">00177</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_ix_data_member.html#aced8a9110408450377651ea564f88580">setDefaultValue</a>(<span class="keyword">const</span> QVariant &amp; var)           { m_vDefaultValue = var; }
<a name="l00178"></a><a class="code" href="classqx_1_1_ix_data_member.html#afa2dc0267caf697af5c5cee46b932aeb">00178</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_ix_data_member.html#afa2dc0267caf697af5c5cee46b932aeb">setPrecision</a>(<span class="keywordtype">int</span> iPrecision)                    { m_iPrecision = iPrecision; }
<a name="l00179"></a><a class="code" href="classqx_1_1_ix_data_member.html#a37b70ed773a4fe4e5686c70d5b294e5b">00179</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_ix_data_member.html#a37b70ed773a4fe4e5686c70d5b294e5b">setRequired</a>(<span class="keywordtype">bool</span> bRequired)                     { m_bRequired = bRequired; }
<a name="l00180"></a><a class="code" href="classqx_1_1_ix_data_member.html#a359fc49a17000a2870acb6a9a51c1709">00180</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_ix_data_member.html#a359fc49a17000a2870acb6a9a51c1709">setReadOnly</a>(<span class="keywordtype">bool</span> bReadOnly)                     { m_bReadOnly = bReadOnly; }
<a name="l00181"></a><a class="code" href="classqx_1_1_ix_data_member.html#ac3837882bdd149e56d6e438d81aa8c21">00181</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_ix_data_member.html#ac3837882bdd149e56d6e438d81aa8c21">setAutoIncrement</a>(<span class="keywordtype">bool</span> bAutoIncrement)           { m_bAutoIncrement = bAutoIncrement; }
<a name="l00182"></a><a class="code" href="classqx_1_1_ix_data_member.html#a38d10d8fa2d8bbe08471e977f206c61c">00182</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_ix_data_member.html#a38d10d8fa2d8bbe08471e977f206c61c">setIsPrimaryKey</a>(<span class="keywordtype">bool</span> bIsPrimaryKey)             { m_bIsPrimaryKey = bIsPrimaryKey; }
<a name="l00183"></a><a class="code" href="classqx_1_1_ix_data_member.html#a001279e553023e581165c5c41796ce89">00183</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_ix_data_member.html#a001279e553023e581165c5c41796ce89">setIsIndex</a>(<span class="keywordtype">bool</span> bIsIndex)                       { m_bIndex = bIsIndex; }
<a name="l00184"></a><a class="code" href="classqx_1_1_ix_data_member.html#a41e9c2ba9a6ba42e863158aa3ff756e3">00184</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_ix_data_member.html#a41e9c2ba9a6ba42e863158aa3ff756e3">setIsUnique</a>(<span class="keywordtype">bool</span> bIsUnique)                     { m_bUnique = bIsUnique; }
<a name="l00185"></a><a class="code" href="classqx_1_1_ix_data_member.html#af26af041747718a6a7ed0f27c0130e3a">00185</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_ix_data_member.html#af26af041747718a6a7ed0f27c0130e3a">setParent</a>(<a class="code" href="classqx_1_1_ix_data_member_x.html" title="qx::IxDataMemberX : common interface for a list of IxDataMember class properties registered into QxOr...">IxDataMemberX</a> * pParent)              { m_pParent = pParent; }
<a name="l00186"></a><a class="code" href="classqx_1_1_ix_data_member.html#a9a96151e5ed0cefbbe82414fc7eb420e">00186</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_ix_data_member.html#a9a96151e5ed0cefbbe82414fc7eb420e">setSqlRelation</a>(<a class="code" href="classqx_1_1_ix_sql_relation.html" title="qx::IxSqlRelation : common interface for all relationships defined between 2 classes (or between 2 ta...">IxSqlRelation</a> * pSqlRelation)    { m_pSqlRelation.reset(pSqlRelation); }
<a name="l00187"></a>00187 
<a name="l00188"></a>00188    <span class="keywordtype">void</span> setMinValue(<span class="keywordtype">long</span> lMinValue, <span class="keyword">const</span> QString &amp; sMessage = QString());
<a name="l00189"></a>00189    <span class="keywordtype">void</span> setMinValue(<span class="keywordtype">double</span> dMinValue, <span class="keyword">const</span> QString &amp; sMessage = QString());
<a name="l00190"></a>00190    <span class="keywordtype">void</span> setMaxValue(<span class="keywordtype">long</span> lMaxValue, <span class="keyword">const</span> QString &amp; sMessage = QString());
<a name="l00191"></a>00191    <span class="keywordtype">void</span> setMaxValue(<span class="keywordtype">double</span> dMaxValue, <span class="keyword">const</span> QString &amp; sMessage = QString());
<a name="l00192"></a>00192    <span class="keywordtype">void</span> setMinLength(<span class="keywordtype">int</span> iMinLength, <span class="keyword">const</span> QString &amp; sMessage = QString());
<a name="l00193"></a>00193    <span class="keywordtype">void</span> setMaxLength(<span class="keywordtype">int</span> iMaxLength, <span class="keyword">const</span> QString &amp; sMessage = QString());
<a name="l00194"></a>00194    <span class="keywordtype">void</span> setNotNull(<span class="keywordtype">bool</span> bNotNull, <span class="keyword">const</span> QString &amp; sMessage = QString());
<a name="l00195"></a>00195 
<a name="l00196"></a>00196    <span class="keywordtype">bool</span> isThereRelationPartOfPrimaryKey(<span class="keywordtype">int</span> iIndexNamePK, <a class="code" href="classqx_1_1_ix_sql_relation.html" title="qx::IxSqlRelation : common interface for all relationships defined between 2 classes (or between 2 ta...">IxSqlRelation</a> * &amp; pRelation, <span class="keywordtype">int</span> &amp; iIndexNameFK) <span class="keyword">const</span>;
<a name="l00197"></a>00197    <span class="keywordtype">bool</span> isPartOfPrimaryKey(<span class="keywordtype">int</span> iIndexNameFK, <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * &amp; pPrimaryKey, <span class="keywordtype">int</span> &amp; iIndexNamePK) <span class="keyword">const</span>;
<a name="l00198"></a>00198    <span class="keywordtype">void</span> setRelationPartOfPrimaryKey(<span class="keywordtype">int</span> iIndexNamePK, <a class="code" href="classqx_1_1_ix_sql_relation.html" title="qx::IxSqlRelation : common interface for all relationships defined between 2 classes (or between 2 ta...">IxSqlRelation</a> * pRelation, <span class="keywordtype">int</span> iIndexNameFK);
<a name="l00199"></a>00199    <span class="keywordtype">void</span> setPartOfPrimaryKey(<span class="keywordtype">int</span> iIndexNameFK, <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * pPrimaryKey, <span class="keywordtype">int</span> iIndexNamePK);
<a name="l00200"></a>00200 
<a name="l00201"></a>00201    QString getName(<span class="keywordtype">int</span> iIndex, <span class="keyword">const</span> QString &amp; sOtherName = QString()) <span class="keyword">const</span>;
<a name="l00202"></a>00202    QString getSqlAlias(<span class="keyword">const</span> QString &amp; sTable = QString(), <span class="keywordtype">bool</span> bClauseWhere = <span class="keyword">false</span>, <span class="keywordtype">int</span> iIndexName = 0) <span class="keyword">const</span>;
<a name="l00203"></a>00203    QString getSqlType(<span class="keywordtype">int</span> iIndexName = -1) <span class="keyword">const</span>;
<a name="l00204"></a>00204    QString getSqlTypeAndParams(<span class="keywordtype">int</span> iIndexName = -1) <span class="keyword">const</span>;
<a name="l00205"></a>00205    QString getSqlPlaceHolder(<span class="keyword">const</span> QString &amp; sAppend = QString(), <span class="keywordtype">int</span> iIndexName = 0, <span class="keyword">const</span> QString &amp; sSep = QString(<span class="stringliteral">&quot;, &quot;</span>), <span class="keyword">const</span> QString &amp; sOtherName = QString(), <span class="keywordtype">bool</span> bCheckFKPartOfPK = <span class="keyword">false</span>) <span class="keyword">const</span>;
<a name="l00206"></a>00206    <span class="keywordtype">void</span> setSqlPlaceHolder(QSqlQuery &amp; query, <span class="keywordtype">void</span> * pOwner, <span class="keyword">const</span> QString &amp; sAppend = QString(), <span class="keyword">const</span> QString &amp; sOtherName = QString(), <span class="keywordtype">bool</span> bCheckFKPartOfPK = <span class="keyword">false</span>) <span class="keyword">const</span>;
<a name="l00207"></a>00207    QString getSqlAliasEqualToPlaceHolder(<span class="keyword">const</span> QString &amp; sTable = QString(), <span class="keywordtype">bool</span> bClauseWhere = <span class="keyword">false</span>, <span class="keyword">const</span> QString &amp; sAppend = QString(), <span class="keyword">const</span> QString &amp; sSep = QString(<span class="stringliteral">&quot; AND &quot;</span>), <span class="keywordtype">bool</span> bCheckFKPartOfPK = <span class="keyword">false</span>) <span class="keyword">const</span>;
<a name="l00208"></a>00208    QString getSqlNameEqualToPlaceHolder(<span class="keyword">const</span> QString &amp; sAppend = QString(), <span class="keyword">const</span> QString &amp; sSep = QString(<span class="stringliteral">&quot; AND &quot;</span>), <span class="keywordtype">bool</span> bCheckFKPartOfPK = <span class="keyword">false</span>) <span class="keyword">const</span>;
<a name="l00209"></a>00209    QString getSqlTablePointNameAsAlias(<span class="keyword">const</span> QString &amp; sTable, <span class="keyword">const</span> QString &amp; sSep = QString(<span class="stringliteral">&quot;, &quot;</span>), <span class="keyword">const</span> QString &amp; sSuffixAlias = QString(), <span class="keywordtype">bool</span> bCheckFKPartOfPK = <span class="keyword">false</span>) <span class="keyword">const</span>;
<a name="l00210"></a>00210    QString getSqlName(<span class="keyword">const</span> QString &amp; sSep = QString(<span class="stringliteral">&quot;, &quot;</span>), <span class="keyword">const</span> QString &amp; sOtherName = QString(), <span class="keywordtype">bool</span> bCheckFKPartOfPK = <span class="keyword">false</span>) <span class="keyword">const</span>;
<a name="l00211"></a>00211    QString getSqlNameAndTypeAndParams(<span class="keyword">const</span> QString &amp; sSep = QString(<span class="stringliteral">&quot;, &quot;</span>), <span class="keyword">const</span> QString &amp; sOtherName = QString(), <span class="keywordtype">bool</span> bCheckFKPartOfPK = <span class="keyword">false</span>) <span class="keyword">const</span>;
<a name="l00212"></a>00212 
<a name="l00213"></a>00213    <span class="keyword">static</span> QString getSqlFromTable(<span class="keyword">const</span> QString &amp; sTable);
<a name="l00214"></a>00214 
<a name="l00215"></a>00215    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> isEqual(<span class="keyword">const</span> <span class="keywordtype">void</span> * pOwner1, <span class="keyword">const</span> <span class="keywordtype">void</span> * pOwner2) <span class="keyword">const</span> = 0;
<a name="l00216"></a>00216    <span class="keyword">virtual</span> QVariant toVariant(<span class="keyword">const</span> <span class="keywordtype">void</span> * pOwner, <span class="keyword">const</span> QString &amp; sFormat, <span class="keywordtype">int</span> iIndexName = -1, <a class="code" href="structqx_1_1cvt_1_1context.html#ade79c85929462745a3adcdf310c91a93">qx::cvt::context::ctx_type</a> ctx = <a class="code" href="structqx_1_1cvt_1_1context.html#ade79c85929462745a3adcdf310c91a93a1a328a4e7e110b84dbca040ca9b09844">qx::cvt::context::e_no_context</a>) <span class="keyword">const</span> = 0;
<a name="l00217"></a>00217    <span class="keyword">virtual</span> <a class="code" href="classqx_1_1_qx_bool.html" title="qx_bool : boolean type with code and description message when an error occured">qx_bool</a> fromVariant(<span class="keywordtype">void</span> * pOwner, <span class="keyword">const</span> QVariant &amp; v, <span class="keyword">const</span> QString &amp; sFormat, <span class="keywordtype">int</span> iIndexName = -1, <a class="code" href="structqx_1_1cvt_1_1context.html#ade79c85929462745a3adcdf310c91a93">qx::cvt::context::ctx_type</a> ctx = <a class="code" href="structqx_1_1cvt_1_1context.html#ade79c85929462745a3adcdf310c91a93a1a328a4e7e110b84dbca040ca9b09844">qx::cvt::context::e_no_context</a>) = 0;
<a name="l00218"></a>00218 
<a name="l00219"></a><a class="code" href="classqx_1_1_ix_data_member.html#ac582b5ada493abcb9232ff8c1c764030">00219</a>    <span class="keyword">inline</span> QVariant <a class="code" href="classqx_1_1_ix_data_member.html#ac582b5ada493abcb9232ff8c1c764030">toVariant</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> * pOwner, <span class="keywordtype">int</span> iIndexName = -1, <a class="code" href="structqx_1_1cvt_1_1context.html#ade79c85929462745a3adcdf310c91a93">qx::cvt::context::ctx_type</a> ctx = <a class="code" href="structqx_1_1cvt_1_1context.html#ade79c85929462745a3adcdf310c91a93a1a328a4e7e110b84dbca040ca9b09844">qx::cvt::context::e_no_context</a>)<span class="keyword"> const            </span>{ <span class="keywordflow">return</span> this-&gt;<a class="code" href="classqx_1_1_ix_data_member.html#ac582b5ada493abcb9232ff8c1c764030">toVariant</a>(pOwner, m_sFormat, iIndexName, ctx); }
<a name="l00220"></a><a class="code" href="classqx_1_1_ix_data_member.html#a8dc4f2328d9fbe50ffc6b40ef474bb9f">00220</a>    <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_bool.html" title="qx_bool : boolean type with code and description message when an error occured">qx_bool</a> <a class="code" href="classqx_1_1_ix_data_member.html#a8dc4f2328d9fbe50ffc6b40ef474bb9f">fromVariant</a>(<span class="keywordtype">void</span> * pOwner, <span class="keyword">const</span> QVariant &amp; v, <span class="keywordtype">int</span> iIndexName = -1, <a class="code" href="structqx_1_1cvt_1_1context.html#ade79c85929462745a3adcdf310c91a93">qx::cvt::context::ctx_type</a> ctx = <a class="code" href="structqx_1_1cvt_1_1context.html#ade79c85929462745a3adcdf310c91a93a1a328a4e7e110b84dbca040ca9b09844">qx::cvt::context::e_no_context</a>)   { <span class="keywordflow">return</span> this-&gt;<a class="code" href="classqx_1_1_ix_data_member.html#a8dc4f2328d9fbe50ffc6b40ef474bb9f">fromVariant</a>(pOwner, v, m_sFormat, iIndexName, ctx); }
<a name="l00221"></a>00221 
<a name="l00222"></a>00222 <span class="preprocessor">#ifndef _QX_NO_JSON</span>
<a name="l00223"></a>00223 <span class="preprocessor"></span>   <span class="keyword">virtual</span> QJsonValue toJson(<span class="keyword">const</span> <span class="keywordtype">void</span> * pOwner, <span class="keyword">const</span> QString &amp; sFormat) <span class="keyword">const</span> = 0;
<a name="l00224"></a>00224    <span class="keyword">virtual</span> <a class="code" href="classqx_1_1_qx_bool.html" title="qx_bool : boolean type with code and description message when an error occured">qx_bool</a> fromJson(<span class="keywordtype">void</span> * pOwner, <span class="keyword">const</span> QJsonValue &amp; j, <span class="keyword">const</span> QString &amp; sFormat) = 0;
<a name="l00225"></a>00225 
<a name="l00226"></a><a class="code" href="classqx_1_1_ix_data_member.html#ab00634ad56dcba68a1f0a1661dabc7e2">00226</a>    <span class="keyword">inline</span> QJsonValue <a class="code" href="classqx_1_1_ix_data_member.html#ab00634ad56dcba68a1f0a1661dabc7e2">toJson</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> * pOwner)<span class="keyword"> const            </span>{ <span class="keywordflow">return</span> this-&gt;<a class="code" href="classqx_1_1_ix_data_member.html#ab00634ad56dcba68a1f0a1661dabc7e2">toJson</a>(pOwner, m_sFormat); }
<a name="l00227"></a><a class="code" href="classqx_1_1_ix_data_member.html#aa2c1645c89c4ee03909ca53b16da08f5">00227</a>    <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_bool.html" title="qx_bool : boolean type with code and description message when an error occured">qx_bool</a> <a class="code" href="classqx_1_1_ix_data_member.html#aa2c1645c89c4ee03909ca53b16da08f5">fromJson</a>(<span class="keywordtype">void</span> * pOwner, <span class="keyword">const</span> QJsonValue &amp; j)   { <span class="keywordflow">return</span> this-&gt;<a class="code" href="classqx_1_1_ix_data_member.html#aa2c1645c89c4ee03909ca53b16da08f5">fromJson</a>(pOwner, j, m_sFormat); }
<a name="l00228"></a>00228 <span class="preprocessor">#endif // _QX_NO_JSON</span>
<a name="l00229"></a>00229 <span class="preprocessor"></span>
<a name="l00230"></a>00230 <span class="keyword">protected</span>:
<a name="l00231"></a>00231 
<a name="l00232"></a>00232    <span class="keyword">virtual</span> boost::any getDataPtr(<span class="keyword">const</span> <span class="keywordtype">void</span> * pOwner) <span class="keyword">const</span> = 0;
<a name="l00233"></a>00233    <span class="keyword">virtual</span> boost::any getDataPtr(<span class="keywordtype">void</span> * pOwner) = 0;
<a name="l00234"></a>00234    <span class="keyword">virtual</span> <span class="keywordtype">void</span> * getDataVoidPtr(<span class="keyword">const</span> <span class="keywordtype">void</span> * pOwner) <span class="keyword">const</span> = 0;
<a name="l00235"></a>00235    <span class="keyword">virtual</span> <span class="keywordtype">void</span> * getDataVoidPtr(<span class="keywordtype">void</span> * pOwner) = 0;
<a name="l00236"></a>00236 
<a name="l00237"></a>00237 <span class="keyword">public</span>:
<a name="l00238"></a>00238 
<a name="l00239"></a><a class="code" href="classqx_1_1_ix_data_member.html#aeec04ef4c7dfa57f4b7077b61346c273">00239</a>    <span class="keyword">inline</span> boost::any <a class="code" href="classqx_1_1_ix_data_member.html#aeec04ef4c7dfa57f4b7077b61346c273">getValueAnyPtr</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> * pOwner)<span class="keyword"> const    </span>{ <span class="keywordflow">return</span> this-&gt;getDataPtr(pOwner); }
<a name="l00240"></a><a class="code" href="classqx_1_1_ix_data_member.html#a6db773d55a7b4953177ddfadb84e520a">00240</a>    <span class="keyword">inline</span> boost::any <a class="code" href="classqx_1_1_ix_data_member.html#a6db773d55a7b4953177ddfadb84e520a">getValueAnyPtr</a>(<span class="keywordtype">void</span> * pOwner)                { <span class="keywordflow">return</span> this-&gt;getDataPtr(pOwner); }
<a name="l00241"></a><a class="code" href="classqx_1_1_ix_data_member.html#a30111497755171bccae073185270ad3d">00241</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> * <a class="code" href="classqx_1_1_ix_data_member.html#a30111497755171bccae073185270ad3d">getValueVoidPtr</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> * pOwner)<span class="keyword"> const       </span>{ <span class="keywordflow">return</span> this-&gt;getDataVoidPtr(pOwner); }
<a name="l00242"></a><a class="code" href="classqx_1_1_ix_data_member.html#a626e1b6d14680c5ec392a22fd3d9eae7">00242</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> * <a class="code" href="classqx_1_1_ix_data_member.html#a626e1b6d14680c5ec392a22fd3d9eae7">getValueVoidPtr</a>(<span class="keywordtype">void</span> * pOwner)                   { <span class="keywordflow">return</span> this-&gt;getDataVoidPtr(pOwner); }
<a name="l00243"></a>00243 
<a name="l00244"></a>00244    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;
<a name="l00245"></a><a class="code" href="classqx_1_1_ix_data_member.html#a1a2a3055095aaf51109facfd377c1ce1">00245</a>    T * getValuePtr(<span class="keywordtype">void</span> * pOwner, <span class="keywordtype">bool</span> * bOk = NULL)
<a name="l00246"></a>00246    {
<a name="l00247"></a>00247       <span class="keywordflow">if</span> (bOk) { (* bOk) = <span class="keyword">false</span>; }
<a name="l00248"></a>00248       <span class="keywordflow">if</span> (! m_bAccessDataPointer) { qDebug(<span class="stringliteral">&quot;[QxOrm] qx::IxDataMember::getValuePtr&lt;T&gt;() : &#39;%s&#39;&quot;</span>, <span class="stringliteral">&quot;cannot access data-member pointer&quot;</span>); <span class="keywordflow">return</span> NULL; }
<a name="l00249"></a>00249       boost::any a = this-&gt;getDataPtr(pOwner);
<a name="l00250"></a>00250       <span class="keywordflow">try</span> { T * t = boost::any_cast&lt;T *&gt;(a); <span class="keywordflow">if</span> (bOk) { (* bOk) = (t != NULL); }; <span class="keywordflow">return</span> t; }
<a name="l00251"></a>00251       <span class="keywordflow">catch</span> (<span class="keyword">const</span> boost::bad_any_cast &amp; err) { Q_UNUSED(err); qDebug(<span class="stringliteral">&quot;[QxOrm] qx::IxDataMember::getValuePtr&lt;T&gt;() : &#39;%s&#39;&quot;</span>, <span class="stringliteral">&quot;bad any cast exception&quot;</span>); <span class="keywordflow">return</span> NULL; }
<a name="l00252"></a>00252       <span class="keywordflow">catch</span> (...) { qDebug(<span class="stringliteral">&quot;[QxOrm] qx::IxDataMember::getValuePtr&lt;T&gt;() : &#39;%s&#39;&quot;</span>, <span class="stringliteral">&quot;unknown cast exception&quot;</span>); <span class="keywordflow">return</span> NULL; }
<a name="l00253"></a>00253    }
<a name="l00254"></a>00254 
<a name="l00255"></a>00255    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;
<a name="l00256"></a><a class="code" href="classqx_1_1_ix_data_member.html#a2d40f6738b986d361baad859eb349069">00256</a>    T getValue(<span class="keywordtype">void</span> * pOwner, <span class="keywordtype">bool</span> * bOk = NULL)
<a name="l00257"></a>00257    {
<a name="l00258"></a>00258       <span class="keywordflow">if</span> (! m_bAccessDataPointer) { <span class="keywordflow">return</span> <a class="code" href="structqx_1_1_ix_data_member_1_1qx_cannot_access_data_pointer.html">qxCannotAccessDataPointer&lt;T, 0&gt;::getValue</a>(<span class="keyword">this</span>, pOwner, bOk); }
<a name="l00259"></a>00259       T * t = this-&gt;getValuePtr&lt;T&gt;(pOwner, bOk);
<a name="l00260"></a>00260       <span class="keywordflow">return</span> (t ? (* t) : T());
<a name="l00261"></a>00261    }
<a name="l00262"></a>00262 
<a name="l00263"></a>00263    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;
<a name="l00264"></a><a class="code" href="classqx_1_1_ix_data_member.html#aa055b439d2d27c9ca31dc1681bdc3f46">00264</a>    <span class="keywordtype">bool</span> setValue(<span class="keywordtype">void</span> * pOwner, <span class="keyword">const</span> T &amp; val)
<a name="l00265"></a>00265    {
<a name="l00266"></a>00266       <span class="keywordflow">if</span> (! m_bAccessDataPointer) { <span class="keywordflow">return</span> <a class="code" href="structqx_1_1_ix_data_member_1_1qx_cannot_access_data_pointer.html">qxCannotAccessDataPointer&lt;T, 0&gt;::setValue</a>(<span class="keyword">this</span>, pOwner, val); }
<a name="l00267"></a>00267       T * t = this-&gt;getValuePtr&lt;T&gt;(pOwner);
<a name="l00268"></a>00268       <span class="keywordflow">if</span> (t) { (* t) = val; }
<a name="l00269"></a>00269       <span class="keywordflow">return</span> (t != NULL);
<a name="l00270"></a>00270    }
<a name="l00271"></a>00271 
<a name="l00272"></a>00272 <span class="keyword">private</span>:
<a name="l00273"></a>00273 
<a name="l00274"></a>00274    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keywordtype">int</span> dummy&gt;
<a name="l00275"></a><a class="code" href="structqx_1_1_ix_data_member_1_1qx_cannot_access_data_pointer.html">00275</a>    <span class="keyword">struct </span><a class="code" href="structqx_1_1_ix_data_member_1_1qx_cannot_access_data_pointer.html">qxCannotAccessDataPointer</a>
<a name="l00276"></a>00276    {
<a name="l00277"></a><a class="code" href="structqx_1_1_ix_data_member_1_1qx_cannot_access_data_pointer.html#af06138bc3428a819ccf08dd88faa9574">00277</a>       <span class="keyword">static</span> <span class="keyword">inline</span> T getValue(<a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * pData, <span class="keywordtype">void</span> * pOwner, <span class="keywordtype">bool</span> * bOk)
<a name="l00278"></a>00278       { Q_UNUSED(pData); Q_UNUSED(pOwner); qDebug(<span class="stringliteral">&quot;[QxOrm] qx::IxDataMember::qxCannotAccessDataPointer&lt;T&gt;::getValue() : &#39;%s&#39;&quot;</span>, <span class="stringliteral">&quot;type T not supported&quot;</span>); <span class="keywordflow">if</span> (bOk) { (* bOk) = <span class="keyword">false</span>; }; <span class="keywordflow">return</span> T(); }
<a name="l00279"></a><a class="code" href="structqx_1_1_ix_data_member_1_1qx_cannot_access_data_pointer.html#a63d26986949269d825e2d57aaaa82943">00279</a>       <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> setValue(<a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * pData, <span class="keywordtype">void</span> * pOwner, <span class="keyword">const</span> T &amp; val)
<a name="l00280"></a>00280       { Q_UNUSED(pData); Q_UNUSED(pOwner); Q_UNUSED(val); qDebug(<span class="stringliteral">&quot;[QxOrm] qx::IxDataMember::qxCannotAccessDataPointer&lt;T&gt;::setValue() : &#39;%s&#39;&quot;</span>, <span class="stringliteral">&quot;type T not supported&quot;</span>); <span class="keywordflow">return</span> <span class="keyword">false</span>; }
<a name="l00281"></a>00281    };
<a name="l00282"></a>00282 
<a name="l00283"></a>00283    <span class="keyword">template</span> &lt;<span class="keywordtype">int</span> dummy&gt;
<a name="l00284"></a><a class="code" href="structqx_1_1_ix_data_member_1_1qx_cannot_access_data_pointer_3_01_q_variant_00_01dummy_01_4.html">00284</a>    <span class="keyword">struct </span><a class="code" href="structqx_1_1_ix_data_member_1_1qx_cannot_access_data_pointer.html">qxCannotAccessDataPointer</a>&lt;QVariant, dummy&gt;
<a name="l00285"></a>00285    {
<a name="l00286"></a><a class="code" href="structqx_1_1_ix_data_member_1_1qx_cannot_access_data_pointer_3_01_q_variant_00_01dummy_01_4.html#a4d3dcb715b056931ddac9b235c5e6fd9">00286</a>       <span class="keyword">static</span> <span class="keyword">inline</span> QVariant getValue(<a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * pData, <span class="keywordtype">void</span> * pOwner, <span class="keywordtype">bool</span> * bOk)
<a name="l00287"></a>00287       { <span class="keywordflow">if</span> (bOk) { (* bOk) = (pData != NULL); }; <span class="keywordflow">return</span> (pData ? pData-&gt;<a class="code" href="classqx_1_1_ix_data_member.html#aeb41e750a0e5ae206fe671cb94c7eb0f">toVariant</a>(pOwner, <span class="stringliteral">&quot;&quot;</span>) : QVariant()); }
<a name="l00288"></a><a class="code" href="structqx_1_1_ix_data_member_1_1qx_cannot_access_data_pointer_3_01_q_variant_00_01dummy_01_4.html#a740656d5516a08b1b0f9b34f3f7ae7c0">00288</a>       <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> setValue(<a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * pData, <span class="keywordtype">void</span> * pOwner, <span class="keyword">const</span> QVariant &amp; val)
<a name="l00289"></a>00289       { <span class="keywordflow">return</span> (pData ? pData-&gt;<a class="code" href="classqx_1_1_ix_data_member.html#ab745b2a043797eecfe769c3f51257a35">fromVariant</a>(pOwner, val, <span class="stringliteral">&quot;&quot;</span>).<a class="code" href="classqx_1_1_qx_bool.html#a77af74f66d45e4b1e40cb88c3c6316ca">getValue</a>() : <span class="keyword">false</span>); }
<a name="l00290"></a>00290    };
<a name="l00291"></a>00291 
<a name="l00292"></a>00292    <span class="keyword">template</span> &lt;<span class="keywordtype">int</span> dummy&gt;
<a name="l00293"></a><a class="code" href="structqx_1_1_ix_data_member_1_1qx_cannot_access_data_pointer_3_01_q_string_00_01dummy_01_4.html">00293</a>    <span class="keyword">struct </span><a class="code" href="structqx_1_1_ix_data_member_1_1qx_cannot_access_data_pointer.html">qxCannotAccessDataPointer</a>&lt;QString, dummy&gt;
<a name="l00294"></a>00294    {
<a name="l00295"></a><a class="code" href="structqx_1_1_ix_data_member_1_1qx_cannot_access_data_pointer_3_01_q_string_00_01dummy_01_4.html#a9e0cab67131aca9648555cf3ce33b25a">00295</a>       <span class="keyword">static</span> <span class="keyword">inline</span> QString getValue(<a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * pData, <span class="keywordtype">void</span> * pOwner, <span class="keywordtype">bool</span> * bOk)
<a name="l00296"></a>00296       { <span class="keywordflow">if</span> (bOk) { (* bOk) = (pData != NULL); }; <span class="keywordflow">return</span> (pData ? pData-&gt;<a class="code" href="classqx_1_1_ix_data_member.html#aeb41e750a0e5ae206fe671cb94c7eb0f">toVariant</a>(pOwner, <span class="stringliteral">&quot;&quot;</span>).toString() : QString()); }
<a name="l00297"></a><a class="code" href="structqx_1_1_ix_data_member_1_1qx_cannot_access_data_pointer_3_01_q_string_00_01dummy_01_4.html#a0aebc2dcd0ac98027d1afa187e124fdb">00297</a>       <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> setValue(<a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * pData, <span class="keywordtype">void</span> * pOwner, <span class="keyword">const</span> QString &amp; val)
<a name="l00298"></a>00298       { QVariant tmp(val); <span class="keywordflow">return</span> (pData ? pData-&gt;<a class="code" href="classqx_1_1_ix_data_member.html#ab745b2a043797eecfe769c3f51257a35">fromVariant</a>(pOwner, tmp, <span class="stringliteral">&quot;&quot;</span>).<a class="code" href="classqx_1_1_qx_bool.html#a77af74f66d45e4b1e40cb88c3c6316ca">getValue</a>() : <span class="keyword">false</span>); }
<a name="l00299"></a>00299    };
<a name="l00300"></a>00300 
<a name="l00301"></a>00301 <span class="keyword">public</span>:
<a name="l00302"></a>00302 
<a name="l00303"></a>00303 <span class="preprocessor">#ifdef _QX_ENABLE_BOOST_SERIALIZATION</span>
<a name="l00304"></a>00304 <span class="preprocessor"></span>
<a name="l00305"></a>00305 <span class="preprocessor">#if _QX_SERIALIZE_POLYMORPHIC</span>
<a name="l00306"></a>00306 <span class="preprocessor"></span>   <a class="code" href="_ix_data_member_8h.html#a7b213afb4618256e4c0c7fe6b081e52b">QX_IX_DATA_MEMBER_PURE_VIRTUAL_ARCHIVE</a>(boost::archive::polymorphic_iarchive, boost::archive::polymorphic_oarchive)
<a name="l00307"></a>00307 <span class="preprocessor">#endif // _QX_SERIALIZE_POLYMORPHIC</span>
<a name="l00308"></a>00308 <span class="preprocessor"></span>
<a name="l00309"></a>00309 <span class="preprocessor">#if _QX_SERIALIZE_BINARY</span>
<a name="l00310"></a>00310 <span class="preprocessor"></span>   <a class="code" href="_ix_data_member_8h.html#a7b213afb4618256e4c0c7fe6b081e52b">QX_IX_DATA_MEMBER_PURE_VIRTUAL_ARCHIVE</a>(boost::archive::binary_iarchive, boost::archive::binary_oarchive)
<a name="l00311"></a>00311 <span class="preprocessor">#endif // _QX_SERIALIZE_BINARY</span>
<a name="l00312"></a>00312 <span class="preprocessor"></span>
<a name="l00313"></a>00313 <span class="preprocessor">#if _QX_SERIALIZE_TEXT</span>
<a name="l00314"></a>00314 <span class="preprocessor"></span>   <a class="code" href="_ix_data_member_8h.html#a7b213afb4618256e4c0c7fe6b081e52b">QX_IX_DATA_MEMBER_PURE_VIRTUAL_ARCHIVE</a>(boost::archive::text_iarchive, boost::archive::text_oarchive)
<a name="l00315"></a>00315 <span class="preprocessor">#endif // _QX_SERIALIZE_TEXT</span>
<a name="l00316"></a>00316 <span class="preprocessor"></span>
<a name="l00317"></a>00317 <span class="preprocessor">#if _QX_SERIALIZE_XML</span>
<a name="l00318"></a>00318 <span class="preprocessor"></span>   <a class="code" href="_ix_data_member_8h.html#a7b213afb4618256e4c0c7fe6b081e52b">QX_IX_DATA_MEMBER_PURE_VIRTUAL_ARCHIVE</a>(boost::archive::xml_iarchive, boost::archive::xml_oarchive)
<a name="l00319"></a>00319 <span class="preprocessor">#endif // _QX_SERIALIZE_XML</span>
<a name="l00320"></a>00320 <span class="preprocessor"></span>
<a name="l00321"></a>00321 <span class="preprocessor">#if _QX_SERIALIZE_PORTABLE_BINARY</span>
<a name="l00322"></a>00322 <span class="preprocessor"></span>   <a class="code" href="_ix_data_member_8h.html#a7b213afb4618256e4c0c7fe6b081e52b">QX_IX_DATA_MEMBER_PURE_VIRTUAL_ARCHIVE</a>(<a class="code" href="classeos_1_1portable__iarchive.html" title="Portable binary input archive using little endian format.">eos::portable_iarchive</a>, <a class="code" href="classeos_1_1portable__oarchive.html" title="Portable binary output archive using little endian format.">eos::portable_oarchive</a>)
<a name="l00323"></a>00323 <span class="preprocessor">#endif // _QX_SERIALIZE_PORTABLE_BINARY</span>
<a name="l00324"></a>00324 <span class="preprocessor"></span>
<a name="l00325"></a>00325 <span class="preprocessor">#if _QX_SERIALIZE_WIDE_BINARY</span>
<a name="l00326"></a>00326 <span class="preprocessor"></span>   <a class="code" href="_ix_data_member_8h.html#a7b213afb4618256e4c0c7fe6b081e52b">QX_IX_DATA_MEMBER_PURE_VIRTUAL_ARCHIVE</a>(boost::archive::binary_wiarchive, boost::archive::binary_woarchive)
<a name="l00327"></a>00327 <span class="preprocessor">#endif // _QX_SERIALIZE_WIDE_BINARY</span>
<a name="l00328"></a>00328 <span class="preprocessor"></span>
<a name="l00329"></a>00329 <span class="preprocessor">#if _QX_SERIALIZE_WIDE_TEXT</span>
<a name="l00330"></a>00330 <span class="preprocessor"></span>   <a class="code" href="_ix_data_member_8h.html#a7b213afb4618256e4c0c7fe6b081e52b">QX_IX_DATA_MEMBER_PURE_VIRTUAL_ARCHIVE</a>(boost::archive::text_wiarchive, boost::archive::text_woarchive)
<a name="l00331"></a>00331 <span class="preprocessor">#endif // _QX_SERIALIZE_WIDE_TEXT</span>
<a name="l00332"></a>00332 <span class="preprocessor"></span>
<a name="l00333"></a>00333 <span class="preprocessor">#if _QX_SERIALIZE_WIDE_XML</span>
<a name="l00334"></a>00334 <span class="preprocessor"></span>   <a class="code" href="_ix_data_member_8h.html#a7b213afb4618256e4c0c7fe6b081e52b">QX_IX_DATA_MEMBER_PURE_VIRTUAL_ARCHIVE</a>(boost::archive::xml_wiarchive, boost::archive::xml_woarchive)
<a name="l00335"></a>00335 <span class="preprocessor">#endif // _QX_SERIALIZE_WIDE_XML</span>
<a name="l00336"></a>00336 <span class="preprocessor"></span>
<a name="l00337"></a>00337 <span class="preprocessor">#endif // _QX_ENABLE_BOOST_SERIALIZATION</span>
<a name="l00338"></a>00338 <span class="preprocessor"></span>
<a name="l00339"></a>00339 <span class="keyword">private</span>:
<a name="l00340"></a>00340 
<a name="l00341"></a><a class="code" href="classqx_1_1_ix_data_member.html#a1761dff73d87f44b11095b68d2751d3f">00341</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> updateNamePtr()
<a name="l00342"></a>00342    {
<a name="l00343"></a>00343       QString sNamePtr = (m_sName.isEmpty() ? m_sKey : m_sName);
<a name="l00344"></a>00344       sNamePtr.replace(<span class="stringliteral">&quot;|&quot;</span>, <span class="stringliteral">&quot;-&quot;</span>); <span class="comment">// valid xml tag</span>
<a name="l00345"></a>00345       m_byteName = sNamePtr.toLatin1();
<a name="l00346"></a>00346       m_pName = m_byteName.constData();
<a name="l00347"></a>00347       m_lstNames = (m_sName.isEmpty() ? m_sKey.split(<span class="stringliteral">&quot;|&quot;</span>) : m_sName.split(<span class="stringliteral">&quot;|&quot;</span>));
<a name="l00348"></a>00348    }
<a name="l00349"></a>00349 
<a name="l00350"></a>00350 <span class="preprocessor">#ifdef _QX_ENABLE_BOOST_SERIALIZATION</span>
<a name="l00351"></a>00351 <span class="preprocessor"></span>   <span class="keyword">template</span> &lt;<span class="keyword">class</span> Archive&gt;
<a name="l00352"></a>00352    <span class="keywordtype">void</span> <a class="code" href="namespaceboost_1_1serialization.html#a3297cdd4424ea4b870daccd7079c8951">serialize</a>(Archive &amp; ar, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> version);
<a name="l00353"></a>00353 <span class="preprocessor">#endif // _QX_ENABLE_BOOST_SERIALIZATION</span>
<a name="l00354"></a>00354 <span class="preprocessor"></span>
<a name="l00355"></a>00355 };
<a name="l00356"></a>00356 
<a name="l00357"></a><a class="code" href="namespaceqx.html#a11cc7072ef5158ef1bec37982deb11dc">00357</a> <span class="keyword">typedef</span> qx_shared_ptr&lt;IxDataMember&gt; <a class="code" href="namespaceqx.html#a11cc7072ef5158ef1bec37982deb11dc">IxDataMember_ptr</a>;
<a name="l00358"></a>00358 
<a name="l00359"></a>00359 } <span class="comment">// namespace qx</span>
<a name="l00360"></a>00360 
<a name="l00361"></a>00361 <a class="code" href="_qx_macro_8h.html#aa84ef7b2e52b3b2eb658f6087d5061cf">QX_DLL_EXPORT_INLINE_FCT</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="_ix_data_member_8h.html#a48deafdc09c36cd2efce8065ddf84139">operator&lt; </a>(<span class="keyword">const</span> <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">qx::IxDataMember</a> &amp; i1, <span class="keyword">const</span> <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">qx::IxDataMember</a> &amp; i2);
<a name="l00362"></a>00362 <a class="code" href="_qx_macro_8h.html#aa84ef7b2e52b3b2eb658f6087d5061cf">QX_DLL_EXPORT_INLINE_FCT</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="_ix_data_member_8h.html#a5fd20b35b2f5da93897a12c417471a55">operator&gt; </a>(<span class="keyword">const</span> <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">qx::IxDataMember</a> &amp; i1, <span class="keyword">const</span> <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">qx::IxDataMember</a> &amp; i2);
<a name="l00363"></a>00363 
<a name="l00364"></a>00364 <span class="preprocessor">#endif // _IX_DATA_MEMBER_H_</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_ix_data_member_8h.html">IxDataMember.h</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Sun Dec 11 2016 13:41:04 for QxOrm by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
